package com.sky.mapper;
import java.util.List;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.annotation.AutoFill;
import com.sky.entity.User;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param openid
     * @return User
     * @description description
     */
    @Select("select * from user where openid = #{openid}")
    User selectUserByOpenid(String openid);

    List<User> selectAll();

    List<User> selectByAll(User user);

    int insertList(@Param("list")List<User> list);

    int insertSelective(User user);

}
